#include <linux/init.h>
#include <linux/module.h>

MODULE_LICENSE("Dual BSD/GPL");

struct node {
	__u64 array[32];
	struct node *p;
	char str[64];
};

static __init int test_init(void)
{
	void *p = NULL;
	struct node *q = NULL, *r = NULL;
	printk(KERN_ERR "test init \n");
	p = (struct node *)kmalloc(sizeof(struct node)*2, GFP_KERNEL);
	if (!p)
		return 0;
	q = (struct node *)p;
	r = q + 1;
	kfree(q);
	return 0;
}

static __exit void test_exit(void)
{
	printk(KERN_ERR "test exit \n");
}

module_init(test_init);
module_exit(test_exit);

